//
//  MyHelpCentreWebVC.m
//  ZITHER
//
//  Created by weixin on 2018/11/21.
//  Copyright © 2018 weixn. All rights reserved.
//

#import "MyHelpCentreWebVC.h"

@interface MyHelpCentreWebVC ()

@property (nonatomic,strong)UIWebView *webview;

@end

@implementation MyHelpCentreWebVC


- (void)viewDidLoad {
    [super viewDidLoad];

    [self setNav];
    [self setUI];
    
}

-(void)setNav{
    [self.baseNavigationView setHiddenNav:NO VC:self];
    [self.baseNavigationView NavigationBarStyle:1];
    self.baseNavigationView.leftButton1.hidden = YES;
    self.baseNavigationView.isShowShadow = YES;
    self.baseNavigationView.navViewStyle.title.text = _title1;
}

-(void)setTitle1:(NSString *)title1{
    _title1 = title1;
    [self setNav];
}

-(void)setUI{
    
    [self.view addSubview:self.webview];
    
    NSURLRequest *req = [NSURLRequest requestWithURL:[NSURL URLWithString:self.url]];
    
    [self.webview loadRequest:req];
    
}

-(UIWebView *)webview{
    
    if(!_webview){
        
        _webview = [[UIWebView alloc]initWithFrame:CGRectMake(15, NaviHeight,SCREEN_WIDTH-30, SCREEN_HEIGHT-NaviHeight)];
        
        _webview .opaque = NO;
        
        _webview.scrollView.pagingEnabled = NO;
        
        _webview.backgroundColor = [UIColor whiteColor];
//        _webview.delegate = self;
        
        _webview.scrollView.bounces = NO;
        
        _webview.scrollView.showsHorizontalScrollIndicator = YES;
        
        _webview.scrollView.showsVerticalScrollIndicator = YES;
        
    }
    
    return _webview;
    
}

@end
